package cn.bjc.fallbanck;

import cn.bjc.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderFallback {


    public static User fallbackOrderMethod(@PathVariable("id") Long id, Throwable e){
        e.printStackTrace();
        return new User(-1L, "触发降级方法类熔断", "触发Sentinel对user服务熔断,服务暂时不可用!");

    }
}
